﻿using AutoMapper;
using B.ERP.Domain;
using B.ERP.Services.Input;
using B.ERP.Services.OutPut;

namespace B.ERP.API.Autpmappers
{
    public class Mappers:Profile
    {
        public Mappers()
        {
            CreateMap<AddBomInput,BomModel>();
            CreateMap<BomModel,GetBomDTO>();

            //物料
            CreateMap<AddMaterialInput, BomMaterialIdModel>();
            CreateMap<BomMaterialIdModel, GetMaterialOutPut>();
            CreateMap<EditMaterialInput, BomMaterialIdModel>();
            CreateMap<GetMaterialOutPut, BomMaterialIdModel>();
        }
    }
}
